# -*- coding:utf8 -*-
import sys
import pygame

def run_game ():
    """
    初始化游戏，并创建一个屏幕对象
    """
    pygame.init()
    screen = pygame.display.set_mode((1200, 800))
    pygame.display.set_caption("Alien Invasion")
    print(str(screen) + '\n')
    bg_color = (230, 230, 0, 0.7)

    while True:
        for evnet in pygame.event.get():
            if evnet.type == pygame.QUIT:
                sys.exit()
        screen.fill(bg_color)
        pygame.display.flip()

run_game()